package com.cctc.juc.demo.Athread.Astate;

/**
 * 线程状态：不限时等待。
 */
public class AWaitingThread implements Runnable {
    private final Object LOCK = new Object();

    @Override
    public void run() {
        synchronized (LOCK) {
            try {
                LOCK.wait();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
